Use stdint.h instead of inttypes.h (#223)
authorMichael Williamson <mike@zwobble.org>
Thu, 4 Jan 2024 00:34:07 +0000 (00:34 +0000)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 00:34:07 +0000 (19:34 -0500)
This improves support for targeting wasm32 with clang 12.

utf8proc.h

index 631553c3815618e925435bc781629ebc7c4ed939..ad1f2f8b5dfc60da8d3ccb0d77c8359491e82629 100644 (file)
@@ -79,7 +79,7 @@
 #include <stdlib.h>
 
 #if defined(_MSC_VER) && _MSC_VER < 1800
-// MSVC prior to 2013 lacked stdbool.h and inttypes.h
+// MSVC prior to 2013 lacked stdbool.h and stdint.h
 typedef signed char utf8proc_int8_t;
 typedef unsigned char utf8proc_uint8_t;
 typedef short utf8proc_int16_t;
@@ -107,7 +107,7 @@ typedef bool utf8proc_bool;
 #else
 #  include <stddef.h>
 #  include <stdbool.h>
-#  include <inttypes.h>
+#  include <stdint.h>
 typedef int8_t utf8proc_int8_t;
 typedef uint8_t utf8proc_uint8_t;
 typedef int16_t utf8proc_int16_t;